home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Python 1.4 / Python 1.4 source / Mac / Modules / ctl / ctlgen.py < prev    next >
Encoding:
Text File  |  1996-10-01  |  3.7 KB  |  164 lines  |  [TEXT/CWIE]

  1. # Generated from 'flap:CW9 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
  2.  
  3. f = Function(ControlRef, 'NewControl',
  4.     (WindowRef, 'theWindow', InMode),
  5.     (Rect_ptr, 'boundsRect', InMode),
  6.     (ConstStr255Param, 'title', InMode),
  7.     (Boolean, 'visible', InMode),
  8.     (SInt16, 'value', InMode),
  9.     (SInt16, 'min', InMode),
  10.     (SInt16, 'max', InMode),
  11.     (SInt16, 'procID', InMode),
  12.     (SInt32, 'refCon', InMode),
  13. )
  14. functions.append(f)
  15.  
  16. f = Function(ControlRef, 'GetNewControl',
  17.     (SInt16, 'controlID', InMode),
  18.     (WindowRef, 'owner', InMode),
  19. )
  20. functions.append(f)
  21.  
  22. f = Method(void, 'ShowControl',
  23.     (ControlRef, 'theControl', InMode),
  24. )
  25. methods.append(f)
  26.  
  27. f = Method(void, 'HideControl',
  28.     (ControlRef, 'theControl', InMode),
  29. )
  30. methods.append(f)
  31.  
  32. f = Function(void, 'DrawControls',
  33.     (WindowRef, 'theWindow', InMode),
  34. )
  35. functions.append(f)
  36.  
  37. f = Method(void, 'Draw1Control',
  38.     (ControlRef, 'theControl', InMode),
  39. )
  40. methods.append(f)
  41.  
  42. f = Function(void, 'UpdateControls',
  43.     (WindowRef, 'theWindow', InMode),
  44.     (RgnHandle, 'updateRegion', InMode),
  45. )
  46. functions.append(f)
  47.  
  48. f = Method(void, 'HiliteControl',
  49.     (ControlRef, 'theControl', InMode),
  50.     (ControlPartCode, 'hiliteState', InMode),
  51. )
  52. methods.append(f)
  53.  
  54. f = Method(ControlPartCode, 'TrackControl',
  55.     (ControlRef, 'theControl', InMode),
  56.     (Point, 'thePoint', InMode),
  57.     (FakeType('(ControlActionUPP)0'), 'actionProc', InMode),
  58. )
  59. methods.append(f)
  60.  
  61. f = Method(void, 'DragControl',
  62.     (ControlRef, 'theControl', InMode),
  63.     (Point, 'startPoint', InMode),
  64.     (Rect_ptr, 'limitRect', InMode),
  65.     (Rect_ptr, 'slopRect', InMode),
  66.     (DragConstraint, 'axis', InMode),
  67. )
  68. methods.append(f)
  69.  
  70. f = Method(ControlPartCode, 'TestControl',
  71.     (ControlRef, 'theControl', InMode),
  72.     (Point, 'thePoint', InMode),
  73. )
  74. methods.append(f)
  75.  
  76. f = Function(ControlPartCode, 'FindControl',
  77.     (Point, 'thePoint', InMode),
  78.     (WindowRef, 'theWindow', InMode),
  79.     (ExistingControlHandle, 'theControl', OutMode),
  80. )
  81. functions.append(f)
  82.  
  83. f = Method(void, 'MoveControl',
  84.     (ControlRef, 'theControl', InMode),
  85.     (SInt16, 'h', InMode),
  86.     (SInt16, 'v', InMode),
  87. )
  88. methods.append(f)
  89.  
  90. f = Method(void, 'SizeControl',
  91.     (ControlRef, 'theControl', InMode),
  92.     (SInt16, 'w', InMode),
  93.     (SInt16, 'h', InMode),
  94. )
  95. methods.append(f)
  96.  
  97. f = Method(void, 'SetControlTitle',
  98.     (ControlRef, 'theControl', InMode),
  99.     (ConstStr255Param, 'title', InMode),
  100. )
  101. methods.append(f)
  102.  
  103. f = Method(void, 'GetControlTitle',
  104.     (ControlRef, 'theControl', InMode),
  105.     (Str255, 'title', InMode),
  106. )
  107. methods.append(f)
  108.  
  109. f = Method(SInt16, 'GetControlValue',
  110.     (ControlRef, 'theControl', InMode),
  111. )
  112. methods.append(f)
  113.  
  114. f = Method(void, 'SetControlValue',
  115.     (ControlRef, 'theControl', InMode),
  116.     (SInt16, 'newValue', InMode),
  117. )
  118. methods.append(f)
  119.  
  120. f = Method(SInt16, 'GetControlMinimum',
  121.     (ControlRef, 'theControl', InMode),
  122. )
  123. methods.append(f)
  124.  
  125. f = Method(void, 'SetControlMinimum',
  126.     (ControlRef, 'theControl', InMode),
  127.     (SInt16, 'newMinimum', InMode),
  128. )
  129. methods.append(f)
  130.  
  131. f = Method(SInt16, 'GetControlMaximum',
  132.     (ControlRef, 'theControl', InMode),
  133. )
  134. methods.append(f)
  135.  
  136. f = Method(void, 'SetControlMaximum',
  137.     (ControlRef, 'theControl', InMode),
  138.     (SInt16, 'newMaximum', InMode),
  139. )
  140. methods.append(f)
  141.  
  142. f = Method(SInt16, 'GetControlVariant',
  143.     (ControlRef, 'theControl', InMode),
  144. )
  145. methods.append(f)
  146.  
  147. f = Method(void, 'SetControlAction',
  148.     (ControlRef, 'theControl', InMode),
  149.     (FakeType('(ControlActionUPP)0'), 'actionProc', InMode),
  150. )
  151. methods.append(f)
  152.  
  153. f = Method(void, 'SetControlReference',
  154.     (ControlRef, 'theControl', InMode),
  155.     (SInt32, 'data', InMode),
  156. )
  157. methods.append(f)
  158.  
  159. f = Method(SInt32, 'GetControlReference',
  160.     (ControlRef, 'theControl', InMode),
  161. )
  162. methods.append(f)
  163.  
  164.